import axios from '@/plugins/axios'

export function getAllArticles (params) {
  return axios.get('/api/articles', params)
}

export function getArticleDetail (id, params) {
  return axios.get('/api/articles/' + id, params)
}
